package com.example.hospital.api.db.dao;

import com.example.hospital.api.db.pojo.DrugNumEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface DrugNumDao {

    public ArrayList<HashMap> searchNumByPage(Map param);

    public long searchNumCount(Map param);

    @Transactional
    public void insert(DrugNumEntity entity);

    public void addNumById(Map param);

    public int searchNumById(int id);

    public void reduceNumById(Map param);

    public HashMap searchById(int id);
}
